package com.baizhi.travels.mapper;

import com.baizhi.travels.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * Description:travels
 * Created by admin  on 2020/5/19  17:07
 */
@Mapper
public interface UserDao {

    /**
     * 保存用户
     * @param user
     */
    void save(User user);

    /**
     * 用户登录
     * @param username
     * @return
     */
    User findByUsername(String username);
}
